package cn.net.withub.dataCollector.web.model;

import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

//@XmlRootElement(name = "GROUP")
@XmlRootElement
@XmlType(name="GROUP",propOrder={"gxid","fzms","yskeyVal","ysJhfzs"})
//@XmlSeeAlso({XMLYsFz.class})
public class XMLYsFz {

    private String gxid;
    private String fzms;
    private List<XMLYskeyVal> yskeyVal;
    private List<XMLYsJhfz> ysJhfzs;

    public XMLYsFz() {
    }

    public XMLYsFz(String gxid, String fzms) {
        this.gxid = gxid;
        this.fzms = fzms;
    }
    public XMLYsFz(String gxid, String fzms, List<XMLYskeyVal> yskeyVal, List<XMLYsJhfz> ysJhfzs) {
        this.gxid = gxid;
        this.fzms = fzms;
        this.yskeyVal = yskeyVal;
        this.ysJhfzs = ysJhfzs;
    }

    @XmlAttribute(name="ID")
    public String getGxid() {
        return gxid;
    }

    public void setGxid(String gxid) {
        this.gxid = gxid;
    }

    public String getFzms() {
        return fzms;
    }

    @XmlAttribute(name="NAME")
    public void setFzms(String fzms) {
        this.fzms = fzms;
    }
    @XmlElement(name = "YS")
    public List<XMLYskeyVal> getYskeyVal() {
        return yskeyVal;
    }

    public void setYskeyVal(List<XMLYskeyVal> yskeyVal) {
        this.yskeyVal = yskeyVal;
    }

    @XmlElementWrapper(name = "YS_LIST")
    @XmlElement(name = "CASE")
    public List<XMLYsJhfz> getYsJhfzs() {
        return ysJhfzs;
    }

    public void setYsJhfzs(List<XMLYsJhfz> ysJhfzs) {
        this.ysJhfzs = ysJhfzs;
    }

    @Override
    public String toString() {
        return "XMLYsFz{" +
                "gxid='" + gxid + '\'' +
                ", fzms='" + fzms + '\'' +
                ", yskeyVal=" + yskeyVal +
                ", ysJhfzs=" + ysJhfzs +
                '}';
    }
}